package com.cwn.wizbank.utils.xml;

import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import java.util.List;

@XmlRootElement(name = "tableofcontents")
public class CourseXml {

    @XmlAttribute
    public String identifier;

    @XmlAttribute
    public String title;

    @XmlElement(name = "item")
    public List<CourseItem> item;


    public CourseXml() {
    }

    public CourseXml(String identifier, String title, List<CourseItem> item) {
        this.identifier = identifier;
        this.title = title;
        this.item = item;
    }

    @Override
    public String toString() {
        return "CourseXml{" +
                "identifier='" + identifier + '\'' +
                ", title='" + title + '\'' +
                ", item=" + item +
                '}';
    }
}
